export const tableOption = {
  "index": true,
  border: true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  align: 'center',
  menuWidth: 260,
  searchMenuSpan: 6,
  searchSize: 'mini',
  filterBtn: true,
  tip: false,
  column: [{
      type: 'input',
      label: '类型',
      labelPosition: 'top',
      prop: 'type',
      search: true,
      editDisabled: true,
      rules: [{
        required: true,
        message: '请输入字典类型',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'input',
      label: '描述',
      labelPosition: 'top',
      prop: 'description',
      rules: [{
        required: true,
        message: '请输入字典描述',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'select',
      label: '字典类型',
      labelPosition: 'top',
      prop: 'isSystem',
      dicUrl: '/api/sys/dict/type/dict_type',
      search: true,
      value:'0',
      rules: [{
        required: true,
        message: '请输入字典类型',
        trigger: 'blur'
      }],
      span: 12
    },
    {
      type: 'input',
      label: '备注信息',
      labelPosition: 'top',
      prop: 'remarks',
      span: 12
    },
    {
      width: 150,
      type: 'datetime',
      label: '创建时间',
      labelPosition: 'top',
      prop: 'createTime',
      display: false,
      format: 'yyyy-MM-dd HH:mm',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    }
  ]
}

export const tableItemOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  refreshBtn: false,
  showClomnuBtn: false,
  searchSize: 'mini',
  column: [{
    label: '类型',
    prop: 'dictType',
    disabled:true,
  },
  {
    label: '标签名',
    prop: 'label',
    rules: [{
      required: true,
      message: '请输入标签名',
      trigger: 'blur'
    }]
  },
  {
    width: 150,
    label: '数据值',
    prop: 'value',
    rules: [{
      required: true,
      message: '请输入数据值',
      trigger: 'blur'
    }]
  },
  {
    label: '描述',
    prop: 'description',
    rules: [{
      required: true,
      message: '请输入字典描述',
      trigger: 'blur'
    }]
  },
  {
    label: '排序',
    prop: 'sort',
    type: "number",
    rules: [{
      required: true,
      message: '请输入排序',
      trigger: 'blur'
    }]
  },
  {
    label: '备注信息',
    prop: 'remarks'
  }]
}
